<?php
$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL,"http://localhost/project-alcohol/add/drinks");
curl_setopt($ch, CURLOPT_URL,"http://localhost/project-alcohol/login");
curl_setopt($ch, CURLOPT_POST, 1);
$data = array(
  'user_id' => '1',
  'bar_id' => '1',
  'drink' => 'heineken'
);

$login = array (
	'username'=>'anand',
	'password'=>'anand'
);
//curl_setopt($ch, CURLOPT_POSTFIELDS,  $data);
curl_setopt($ch, CURLOPT_POSTFIELDS,  $login);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//curl_setopt(ch, CURLOPT_HTTPHEADER, array(''))
curl_setopt($ch, CURLOPT_FRESH_CONNECT, TRUE);
//echo json_encode($data);
$response = curl_exec($ch);
curl_close($ch);
print_r("test this shit !");
print_r($response);

?>
